﻿using Camc.Quality.RecordTable.FormBase;
using Camc.Quality.RecordTable.FormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.ProcessRoute
{
    public class ConvertFormBase : TableBase
    {
        
    
        public ConvertFormBase(Guid id, string formName, int serialNum, Guid workStepEntityId, Guid processesEntityId, int sort, string deptment,
          //InspectionSignatureEntity inspectionSignature,
          //RecordRequirementsEntity recordRequirements, MultiMediaEntity multiMedia, MeasuredResultEntity measuredResult, EnvironmentEntity environment,
          string parentProductNum, string parentProductNum_DisplayName,
          bool parentProductNum_Enable, bool parentProductNum_Show, int parentProductNum_Property, string parentProductName, string parentProductName_DisplayName, bool parentProductName_Enable, bool parentProductName_Show,
          int parentProductName_Property, string fisrtDrawingNum, string fisrtDrawingNum_DisplayName, bool fisrtDrawingNum_Enable, bool fisrtDrawingNum_Show, int fisrtDrawingNum_Property,
          string firstDrawingName, string firstDrawingName_DisplayName, bool firstDrawingName_Enable, bool firstDrawingName_Show, int firstDrawingName_Property, string secondDrawingNum, string secondDrawingNum_DisplayName, bool secondDrawingNum_Enable, bool secondDrawingNum_Show,
          int secondDrawingNum_Property, string secondDrawingName, string secondDrawingName_DisplayName, bool secondDrawingName_Enable, bool secondDrawingName_Show, int secondDrawingName_Property,
          string productNum, string productNum_DisplayName, bool productNum_Enable, bool productNum_Show, int productNum_Property, string model, string model_DisplayName, bool model_Enable, bool model_Show, int model_Property,
          string recordElement, string recordElement_DisplayName, bool recordElement_Enable, bool recordElement_Show, int recordElement_Property, string recordItem, string recordItem_DisplayName, bool recordItem_Enable, bool recordItem_Show, int recordItem_Property,
          string toolUsed, string toolUsed_DisplayName, bool toolUsed_Enable, bool toolUsed_Show, int toolUsed_Property, string abnormalRecord, string abnormalRecord_DisplayName, bool abnormalRecord_Enable, bool abnormalRecord_Show, int abnormalRecord_Property, 
          string certificate, string certificate_DisplayName, bool certificate_Enable, bool certificate_Show, int certificate_Property, string secondToolUsed, string secondToolUsed_DisplayName, bool secondToolUsed_Enable, bool secondToolUsed_Show, int secondToolUsed_Property, 
          string thirdToolUsed, string thirdToolUsed_DisplayName, bool thirdToolUsed_Enable, bool thirdToolUsed_Show, int thirdToolUsed_Property,
          string paramCode, string paramCode_DisplayName, bool paramCode_Enable, bool paramCode_Show, int paramCode_Property
          )
        {
            Id = id;
            FormName = formName;
            SerialNum = serialNum;
            WorkStepEntityId = workStepEntityId;
            ProcessesEntityId = processesEntityId;
            Sort = sort;
            Deptment = deptment;
            //RecordRemark = recordRemark;
            //InspectionSignature = inspectionSignature;
            //RecordRequirements = recordRequirements;
            //MultiMedia = multiMedia;
            //MeasuredResult = measuredResult;
            //Environment = environment;
            ParentProductNum = parentProductNum;
            ParentProductNum_DisplayName = parentProductNum_DisplayName;
            ParentProductNum_Enable = parentProductNum_Enable;
            ParentProductNum_Show = parentProductNum_Show;
            ParentProductNum_Property = parentProductNum_Property;
            ParentProductName = parentProductName;
            ParentProductName_DisplayName = parentProductName_DisplayName;
            ParentProductName_Enable = parentProductName_Enable;
            ParentProductName_Show = parentProductName_Show;
            ParentProductName_Property = parentProductName_Property;
            FisrtDrawingNum = fisrtDrawingNum;
            FisrtDrawingNum_DisplayName = fisrtDrawingNum_DisplayName;
            FisrtDrawingNum_Enable = fisrtDrawingNum_Enable;
            FisrtDrawingNum_Show = fisrtDrawingNum_Show;
            FisrtDrawingNum_Property = fisrtDrawingNum_Property;
            FirstDrawingName = firstDrawingName;
            FirstDrawingName_DisplayName = firstDrawingName_DisplayName;
            FirstDrawingName_Enable = firstDrawingName_Enable;
            FirstDrawingName_Show = firstDrawingName_Show;
            FirstDrawingName_Property = firstDrawingName_Property;
            SecondDrawingNum = secondDrawingNum;
            SecondDrawingNum_DisplayName = secondDrawingNum_DisplayName;
            SecondDrawingNum_Enable = secondDrawingNum_Enable;
            SecondDrawingNum_Show = secondDrawingNum_Show;
            SecondDrawingNum_Property = secondDrawingNum_Property;
            SecondDrawingName = secondDrawingName;
            SecondDrawingName_DisplayName = secondDrawingName_DisplayName;
            SecondDrawingName_Enable = secondDrawingName_Enable;
            SecondDrawingName_Show = secondDrawingName_Show;
            SecondDrawingName_Property = secondDrawingName_Property;
            ProductNum = productNum;
            ProductNum_DisplayName = productNum_DisplayName;
            ProductNum_Enable = productNum_Enable;
            ProductNum_Show = productNum_Show;
            ProductNum_Property = productNum_Property;
            Model = model;
            Model_DisplayName = model_DisplayName;
            Model_Enable = model_Enable;
            Model_Show = model_Show;
            Model_Property = model_Property;
            RecordElement = recordElement;
            RecordElement_DisplayName = recordElement_DisplayName;
            RecordElement_Enable = recordElement_Enable;
            RecordElement_Show = recordElement_Show;
            RecordElement_Property = recordElement_Property;
            RecordItem = recordItem;
            RecordItem_DisplayName = recordItem_DisplayName;
            RecordItem_Enable = recordItem_Enable;
            RecordItem_Show = recordItem_Show;
            RecordItem_Property = recordItem_Property;
            ToolUsed = toolUsed;
            ToolUsed_DisplayName = toolUsed_DisplayName;
            ToolUsed_Enable = toolUsed_Enable;
            ToolUsed_Show = toolUsed_Show;
            ToolUsed_Property = toolUsed_Property;
            AbnormalRecord = abnormalRecord;
            AbnormalRecord_DisplayName = abnormalRecord_DisplayName;
            AbnormalRecord_Enable = abnormalRecord_Enable;
            AbnormalRecord_Show = abnormalRecord_Show;
            AbnormalRecord_Property = abnormalRecord_Property;
            Certificate = certificate;
            Certificate_DisplayName = certificate_DisplayName;
            Certificate_Enable = certificate_Enable;
            Certificate_Show = certificate_Show;
            Certificate_Property = certificate_Property;
            SecondToolUsed = secondToolUsed;
            SecondToolUsed_DisplayName = secondToolUsed_DisplayName;
            SecondToolUsed_Enable = secondToolUsed_Enable;
            SecondToolUsed_Show = secondToolUsed_Show;
            SecondToolUsed_Property = secondToolUsed_Property;
            ThirdToolUsed = thirdToolUsed;
            ThirdToolUsed_DisplayName = thirdToolUsed_DisplayName;
            ThirdToolUsed_Enable = thirdToolUsed_Enable;
            ThirdToolUsed_Show = thirdToolUsed_Show;
            ThirdToolUsed_Property = thirdToolUsed_Property;
            ParamCode = paramCode;
            ParamCode_DisplayName = paramCode_DisplayName;
            ParamCode_Enable = paramCode_Enable;
            ParamCode_Show = paramCode_Show;
            ParamCode_Property = paramCode_Property;
        }

        public InspectionSignatureEntity SetInspectionSignature(InspectionSignatureEntity entity)
        {
            entity = new InspectionSignatureEntity(entity.InspectionSignatureName, entity.FirstOperator, entity.FirstOperator_DisplayName, entity.FirstOperator_Enable, entity.FirstOperator_Show, entity.FirstOperator_Property, entity.FirstOperatorData, entity.FirstOperatorData_DisplayName, entity.FirstOperatorData_Enable, entity.FirstOperatorData_Show, entity.FirstOperatorData_Property, entity.SecondOperator, entity.SecondOperator_DisplayName, entity.SecondOperator_Enable, entity.SecondOperator_Show, entity.SecondOperator_Property, entity.SecondOperatorData, entity.SecondOperatorData_DisplayName, entity.SecondOperatorData_Enable, entity.SecondOperatorData_Show, entity.SecondOperatorData_Property, entity.ThirdOperator, entity.ThirdOperator_DisplayName, entity.ThirdOperator_Enable, entity.ThirdOperator_Show, entity.ThirdOperator_Property, entity.ThirdOperatorData, entity.ThirdOperatorData_DisplayName, entity.ThirdOperatorData_Enable, entity.ThirdOperatorData_Show, entity.ThirdOperatorData_Property, entity.FourthOperator, entity.FourthOperator_DisplayName, entity.FourthOperator_Enable, entity.FourthOperator_Show, entity.FourthOperator_Property, entity.FourthOperatorData, entity.FourthOperatorData_DisplayName, entity.FourthOperatorData_Enable, entity.FourthOperatorData_Show, entity.FourthOperatorData_Property, entity.FifthOperator, entity.FifthOperator_DisplayName, entity.FifthOperator_Enable, entity.FifthOperator_Show, entity.FifthOperator_Property, entity.FifthOperatorData, entity.FifthOperatorData_DisplayName, entity.FifthOperatorData_Enable, entity.FifthOperatorData_Show, entity.FifthOperatorData_Property);
            return entity;
        }
        public RecordRequirementsEntity SetRecordRequirements(RecordRequirementsEntity entity)
        {
            entity = new RecordRequirementsEntity(entity.RecordLocation, entity.RecordLocation_DisplayName, entity.RecordLocation_Enable, entity.RecordLocation_Show, entity.RecordLocation_Property, entity.RecordStatus, entity.RecordStatus_DisplayName, entity.RecordStatus_Enable, entity.RecordStatus_Show, entity.RecordStatus_Property, entity.RecordRequire, entity.RecordRequire_DisplayName, entity.RecordRequire_Enable, entity.RecordRequire_Show, entity.RecordRequire_Property, entity.RecordMainopoint, entity.RecordMainopoint_DisplayName, entity.RecordMainopoint_Enable, entity.RecordMainopoint_Show, entity.RecordMainopoint_Property, entity.DesignerDemand, entity.DesignerDemand_DisplayName, entity.DesignerDemand_Enable, entity.DesignerDemand_Show, entity.DesignerDemand_Property, entity.ProcessorDemand, entity.ProcessorDemand_DisplayName, entity.ProcessorDemand_Enable, entity.ProcessorDemand_Show, entity.ProcessorDemand_Property, entity.Remarks, entity.Remarks_DisplayName, entity.Remarks_Enable, entity.Remarks_Show, entity.Remarks_Property);
            return entity;
        }
        public MultiMediaEntity SetMultiMedia(MultiMediaEntity entity)
        {
            entity = new MultiMediaEntity(entity.PhotoNo, entity.PhotoNo_DisplayName, entity.PhotoNo_Enable, entity.PhotoNo_Show, entity.PhotoNo_Property, entity.SecondPhotoNo, entity.SecondPhotoNo_DisplayName, entity.SecondPhotoNo_Enable, entity.SecondPhotoNo_Show, entity.SecondPhotoNo_Property, entity.ThirdPhotoNo, entity.ThirdPhotoNo_DisplayName, entity.ThirdPhotoNo_Enable, entity.ThirdPhotoNo_Show, entity.ThirdPhotoNo_Property, entity.FourthPhotoNo, entity.FourthPhotoNo_DisplayName, entity.FourthPhotoNo_Enable, entity.FourthPhotoNo_Show, entity.FourthPhotoNo_Property);
            return entity;
        }
        public MeasuredResultEntity SetMeasuredResult(MeasuredResultEntity entity)
        {
            entity = new MeasuredResultEntity(entity.FirstMeasuredValues, entity.FirstMeasuredValues_DisplayName, entity.FirstMeasuredValues_Enable, entity.FirstMeasuredValues_Show, entity.FirstMeasuredValues_Property, entity.SecondMeasuredValues, entity.SecondMeasuredValues_DisplayName, entity.SecondMeasuredValues_Enable, entity.SecondMeasuredValues_Show, entity.SecondMeasuredValues_Property, entity.ThirdMeasuredValues, entity.ThirdMeasuredValues_DisplayName, entity.ThirdMeasuredValues_Enable, entity.ThirdMeasuredValues_Show, entity.ThirdMeasuredValues_Property, entity.FourthMeasuredValues, entity.FourthMeasuredValues_DisplayName, entity.FourthMeasuredValues_Enable, entity.FourthMeasuredValues_Show, entity.FourthMeasuredValues_Property, entity.FirstConfirmResult, entity.FirstConfirmResult_DisplayName, entity.FirstConfirmResult_Enable, entity.FirstConfirmResult_Show, entity.FirstConfirmResult_Property, entity.SecondConfirmResult, entity.SecondConfirmResult_DisplayName, entity.SecondConfirmResult_Enable, entity.SecondConfirmResult_Show, entity.SecondConfirmResult_Property, entity.ThirdConfirmResult, entity.ThirdConfirmResult_DisplayName, entity.ThirdConfirmResult_Enable, entity.ThirdConfirmResult_Show, entity.ThirdConfirmResult_Property, entity.MeasuredActual, entity.MeasuredActual_DisplayName, entity.MeasuredActual_Enable, entity.MeasuredActual_Show, entity.MeasuredActual_Property);
            return entity;
        }
        public EnvironmentEntity SetEnvironment(EnvironmentEntity entity)
        {
            entity = new EnvironmentEntity(entity.Temperature, entity.Temperature_DisplayName, entity.Temperature_Enable, entity.Temperature_Show, entity.Temperature_Property, entity.Humidity, entity.Humidity_DisplayName, entity.Humidity_Enable, entity.Humidity_Show, entity.Humidity_Property, entity.AtmPressure, entity.AtmPressure_DisplayName, entity.AtmPressure_Enable, entity.AtmPressure_Show, entity.AtmPressure_Property);
            return entity;
        }
    }
}
